Skip to content

Conversation

@patsevanton
Copy link

No description provided.

@dsmyda
Copy link

dsmyda commented Feb 23, 2022

@patsevanton We were actually able to get this to go away without quiet mode by keeping everything in one string

["CMD-SHELL", "pg_isready -d kong -U kong"]

@Vlad412
Copy link

Vlad412 commented Dec 5, 2022

Thank you, it's working

@ayandebnath
Copy link

@patsevanton We were actually able to get this to go away without quiet mode by keeping everything in one string

["CMD-SHELL", "pg_isready -d kong -U kong"]

Solved, thanks.

- POSTGRES_DB=kong
- POSTGRES_HOST_AUTH_METHOD=trust
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to reflect this change in the README.md as well.

@duanyrf
Copy link

duanyrf commented May 6, 2023

It worked for me, but I wrote this way:

healthcheck:
      test: pg_isready -d bioteste_dev -U postgres

devraj added a commit to anomaly/lab-python-server that referenced this pull request May 25, 2023
i would say this is a bug in docker compose, putting the healthcheck command in
a single string fixes the issue
peter-evans/docker-compose-healthcheck#17

CLOSES #72
xome added a commit to xome/PenAndPaperDmHelperBackendSpringPostgres that referenced this pull request Jan 10, 2024
@raindongz
Copy link

tried test: ["CMD", "pg_isready", "-q", "-d", "root", "-U", "postgres"] and lot similar approaches and still not work. but this one works perfectly. I am just curious why

eamonburns added a commit to eamonburns/htmx_go that referenced this pull request Feb 10, 2024
@saleh199
Copy link

It worked for me, but I wrote this way:

healthcheck:
      test: pg_isready -d bioteste_dev -U postgres

this works for me, thanks

@tonyea
Copy link

tonyea commented Jul 9, 2024

@patsevanton We were actually able to get this to go away without quiet mode by keeping everything in one string

["CMD-SHELL", "pg_isready -d kong -U kong"]

Got it working with this and slight modification for env vars:

test: ["CMD-SHELL", "pg_isready -d ${DATABASE_NAME} -U ${DATABASE_USER}"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants